home *** CD-ROM | disk | FTP | other *** search
/ PC Format 25 / PCFormat 1993-10.iso / READER.ZIP / HEXED.DOC < prev    next >
Text File  |  1993-07-22  |  11KB  |  230 lines

  1.  
  2.                             ╔═══════════════╗
  3.                             ║     HEXED     ║
  4.                             ║  Hex Editor!  ║
  5.                             ║By Nigel Grange║
  6.                             ╚═══════════════╝
  7.  
  8. Introduction
  9. ============
  10.  
  11. Welcome to HEXED, an easy to use hex editor. Any file of any type may be
  12. edited in any way, and HEXED also comes with a number of useful tools to
  13. aid editing.
  14.  
  15. Although there are quite a few file editors around, I hope you'll find
  16. this one of the easiest to use. It's also completely free, which can
  17. only make it even better!
  18.  
  19. Loading HEXED
  20. =============
  21.  
  22. HEXED may be started by typing HEXED at the DOS command prompt, followed
  23. by the name of the file you wish to edit. For example, if you wish to
  24. take a look at a file called DATA.DAT, simply type HEXED DATA.DAT at the
  25. DOS prompt. If there were any problems, HEXED will tell you. When the
  26. file has been loaded, a backup will be taken, just in case you do
  27. something wrong, and the main HEXED screen will be shown.
  28.  
  29. The HEXED Screen
  30. ================
  31.  
  32. The HEXED screen shows a large amount of information, which may seem
  33. daunting at first, but is extremely simple to use. The centre of the
  34. screen shows a hex listing of the file you typed at the command prompt.
  35. The left hand side of the hex listing shows the address of the start of
  36. the current line, in hexadecimal. The first line should read 0000:0000,
  37. indicating the start of the file. These numbers range from 0000:0000 to
  38. FFFF:FFF0, allowing even the largest of files to be edited using HEXED.
  39. The centre of the hex listing shows in hexadecimal each byte of the
  40. section of the file you are currently viewing. The first byte of the
  41. first line (the first byte in the file) should be highlighted in red. On
  42. the right hand side of the hex listing is an display equivalent to the
  43. centre, but the information is displayed in ASCII characters instead of
  44. hexadecimal numbers. Values out of the range 32-127 will be replaced by
  45. a '.', for clarity. The first byte of the first line will also be
  46. highlighted, this time in blue. The red and blue highlights represent
  47. the cursor and show which byte in the file is currently available for
  48. editing. This cursor may be moved around the screen by using the arrow
  49. keys. If the cursor goes beyond the top or bottom of the hex listing,
  50. the display will scroll up and down automatically. Try it and see!
  51.  
  52. The very top of the screen displays a title so you know whose file
  53. editor you are using. The bottom of the screen displays a number of
  54. items. The main part is taken up by a menu. I'll explain this in a
  55. moment. To the right of the menu is an arrow pointing to the left, and
  56. beyond that, an 8-digit hexadecimal number. This number is the address
  57. of the byte under the cursor. It will start at 0000:0000, and adjust
  58. itself when the cursor is moved. Try this and see!
  59.  
  60. HEXED Controls
  61. ==============
  62.  
  63. I've already explained how to use the cursor keys to move the cursor
  64. around the hex listing, and how to scroll it up and down by moving the
  65. cursor to the top or bottom of the hex listing. However, there are
  66. numerous other keys to make life easier. PAGE UP and PAGE DOWN will move
  67. the hex listing up and down respectively a page at a time. The cursor
  68. will stay in the same place on the screen. HOME will move the cursor to
  69. the first byte in the file, and END will position it on the last byte of
  70. the file. 
  71.  
  72. The TAB key is very important, and is used to switch modes. When first
  73. started, HEXED will display a red cursor in the hexadecimal listing, and
  74. a blue cursor in the ASCII listing. When you press the TAB key, the
  75. colours will switch, and the small arrow on the bottom line will point
  76. to the right. Pressing the TAB key again will switch the colours again,
  77. and the small arrow will point to the left again. What is the
  78. significance of this? Switching modes tells HEXED which type of data you
  79. wish to edit. Initially, you are in HEX MODE, and are able to edit the
  80. hexadecimal data directly. When you switch modes with the TAB key, you
  81. are in TEXT MODE, and are able to edit the ASCII text directly. You can
  82. identify which mode you are in by two methods. Firstly, by the colour of
  83. the cursor. The red cursor is always over the data to be edited, so if
  84. the red cursor is over the ASCII text, you are in text mode. The blue
  85. cursor is a trace, and is used to trace the position of the true cursor
  86. in the other set of data. This may sound complex, but is very easy to
  87. use. The second way is by looking at the arrow on the bottom line. If it
  88. is pointing to the left, you are in HEX MODE, if it is pointing to the
  89. right, you are in TEXT MODE.
  90.  
  91. On top of the these controls, there are functions attached to the F-
  92. keys. The functions of these are displayed on the bottom line, and will
  93. be explained shortly. 
  94.  
  95. Editing Data
  96. ============
  97.  
  98. Data may be edited in one of two ways, depending on the mode you are
  99. currently in.
  100.  
  101. HEX MODE: When you are in hex mode, typing a hex digit (0-F) will
  102. display the current address on the bottom line together with the digit
  103. you typed. If you then press a second hex digit, the current location
  104. will change to the hex number you entered, and the ASCII display will
  105. change to reflect this. The cursor will then move to the next byte in
  106. the file. If you do not type a hex digit for the second input, the
  107. function will be cancelled. 
  108.  
  109. TEXT MODE: When in text mode, simply typing any characters in the range
  110. 32-127 (all characters accessible on a normal keyboard) will set the
  111. byte at the current position to the value entered. The cursor will move
  112. to the next byte as usual.  
  113.  
  114. You may have noticed that when using the cursor keys to scroll down
  115. through the file, you were able to scroll past the end of the file. When
  116. this happens, the listing fills with lines of zeros, to show that there
  117. is no more data available. Pressing the END key will take you back up to
  118. the end of the file. However, you will still be able to enter data as in
  119. any other part of the file, and if you do so, the file will be extended
  120. to take account of this. This feature allows you to easily append
  121. information to a file.
  122.  
  123. Function Keys
  124. =============
  125.  
  126. The menu at the bottom of the screen displays a list of six functions:
  127. F1 - Find
  128. F2 - Safety Mode On/Off
  129. F3 - Convert
  130. F4 - Save
  131. F5 - Re-Load
  132. F6 - Goto
  133.  
  134.  
  135. F1 - FIND
  136. =========
  137.  
  138. This function is used to find a sequence of bytes in the current file.
  139. It operates in two ways, depending upon the mode you are currently in.
  140.  
  141. HEX MODE: You will be prompted for a sequence of hex digits. When you
  142. press ENTER, the file will be searched from the current position until
  143. the sequence is found. If it is found, the computer will beep and the
  144. cursor will move to the first byte of the sequence. When entering the
  145. hex digits, enter them as a single line, with no breaks in between. For
  146. example, if you wish to search for the hex bytes AB CD EF in that order,
  147. simply type ABCDEF. If you just press ENTER without entering anything,
  148. the last search will be repeated, providing it was done in hex mode. 
  149.  
  150. TEXT MODE: You will again be prompted for a sequence of characters to
  151. search for. All characters entered will be displayed in capital letters,
  152. but the search will look for characters of either capital or lower case.
  153. This aids in searching for words when the case is not known, or contains
  154. mixed capital and lower case letters. If ENTER is pressed without
  155. entering anything, the previous search will be performed, providing it
  156. was done in TEXT MODE.
  157.  
  158. F2 - SECURITY MODE ON/OFF
  159. =========================
  160.  
  161. This command turns the security mode on or off. Security mode is only
  162. operational when in text mode. When security is on, characters will only
  163. be allowed to be entered over existing characters in the range 32-127.
  164. That is, you will be prevented from overwriting anything not in the
  165. range 32-127. This prevents overwriting most program code, and any end-
  166. of-string characters. 
  167.  
  168. F3 - CONVERT
  169. ============
  170.  
  171. This command is a useful tool, allowing you to convert between decimal
  172. and hexadecimal. When you press F3, you will be presented with a menu
  173. giving you the choice of either decimal to hexadecimal conversion (F1)
  174. or hexadecimal to decimal conversion (F2). Press the appropriate key,
  175. then enter either a decimal or hexadecimal number, as prompted. Decimal
  176. numbers will only be allowed in the range that can be represented by an
  177. eight digit hexadecimal number (0-4,294,967,295). 
  178.  
  179. F4 - SAVE
  180. =========
  181.  
  182. This command will save all of the current changes to the file so far.
  183. There is no going back, so make sure you are happy with the file.
  184.  
  185. F5 - RE-LOAD
  186. ============
  187.  
  188. This command will re-load the file from the last time you saved it. If
  189. no saved have been done, this command will restore the file completely.
  190. There is no recovering your changes after this command, so only use it
  191. when you have made a genuine mistake.
  192.  
  193. F6 - GOTO
  194. =========
  195.  
  196. This command allows you to move the cursor to any position within the
  197. file. You will be prompted for a hexadecimal offset from the beginning
  198. of the file. 
  199.  
  200.  
  201.  
  202. This concludes the documentation for HEXED and I hope you find the
  203. program useful. If there are one or two more features that you would
  204. like to see included, drop me a note, plus £10 for my effort, and I'll
  205. send you an updated version of the program with your requests fulfilled.
  206. (£10 is pretty cheap for programming-on-request!)
  207.  
  208. You can contact me at: 
  209.                            22 Osmond Gardens,
  210.                                Wallington,
  211.                                  Surrey.
  212.                                 SM6 8SU.
  213.                                    UK.
  214.  
  215.  
  216. I'm not rich enough to own a modem, so there's no other contact methods.
  217. Sorry.
  218.  
  219. Please make all cheques payable to Nigel Grange.
  220.  
  221. DISCLAIMER: Neither I nor Future Publishing are responsible for any
  222. damage that this program may or may not cause. This program could very
  223. easily damage a file, so make sure you know what you're doing before
  224. trying anything. (Try out the program on a file you don't want anymore
  225. to get the hang of all of the functions). I've given you the
  226. instructions, so don't go blaming anyone but yourself if things go
  227. wrong. This program is bug free (I think) so it won't intentionally
  228. damage any of your files, but it's probably best to back up a file
  229. before hand, just in case your fingers slip...
  230.